package com.java.jdbc;

import java.util.List;

import static java.time.chrono.JapaneseEra.values;

public class JDBCTest {
    public static void main(String[] args) {
//        JDBCUtils.executeUpdate(
//                "insert into student(name,age,gender,address)values('杨过',20,'男','襄阳')"
//        );

        List<Student> students = JDBCUtils.executeQuery(Student.class,"select * from student");
        students.forEach(student1 -> System.out.println(student1));
    }
}
